package com.cmdi.mq.feign;

import com.cmdi.mq.constant.ServiceNameConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description: RemoteGatewayServiceFeignClient远程网关路由更新调用
 * @Author: gaozb
 */
@FeignClient(value = ServiceNameConstants.GATEWAY_SERVICE_NAME,
        fallbackFactory = RemoteGatewayServiceFeignClientFallBackFactory.class)
public interface RemoteGatewayServiceFeignClient {
    @GetMapping("/route/update")
    ResponseEntity<Boolean> updateRoute(
            // 授权类型
            @RequestParam("gwkey") String gwKey
    );
}